package our.db.sync.support;

import java.sql.Date;

public class SyncConfig {

	private Integer id;
	private Integer batchNum = 1000;// 批次提交数量
	private String srcDsName;
	private String destDsName;
	private String syncType;// 同步类型
	private String srcTable;// 来源表
	private String srcSql;// 来源查询语句，优先级<来源表
	private String destTable;// 目标表
	private String pkNames;// 主键名，支持联合主键，用逗号分隔

	private String updateWhereSql;
	private String updateWhereCols;

	private Date startTime;
	private Date endTime;
	private Integer scanCount = 0;// 已处理记录数

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUpdateWhereSql() {
		return updateWhereSql;
	}

	public void setUpdateWhereSql(String updateWhereSql) {
		this.updateWhereSql = updateWhereSql;
	}

	public String getSrcDsName() {
		return srcDsName;
	}

	public void setSrcDsName(String srcDsName) {
		this.srcDsName = srcDsName;
	}

	public String getDestDsName() {
		return destDsName;
	}

	public void setDestDsName(String destDsName) {
		this.destDsName = destDsName;
	}

	public String getSrcTable() {
		return srcTable;
	}

	public void setSrcTable(String srcTable) {
		this.srcTable = srcTable;
	}

	public String getSrcSql() {
		return srcSql;
	}

	public void setSrcSql(String srcSql) {
		this.srcSql = srcSql;
	}

	public String getDestTable() {
		return destTable;
	}

	public void setDestTable(String destTable) {
		this.destTable = destTable;
	}

	public String getSyncType() {
		return syncType;
	}

	public void setSyncType(String syncType) {
		this.syncType = syncType;
	}

	public String getPkNames() {
		return pkNames;
	}

	public void setPkNames(String pkNames) {
		this.pkNames = pkNames;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Integer getBatchNum() {
		return batchNum;
	}

	public void setBatchNum(Integer batchNum) {
		this.batchNum = batchNum;
	}

	public String getUpdateWhereCols() {
		return updateWhereCols;
	}

	public void setUpdateWhereCols(String updateWhereCols) {
		this.updateWhereCols = updateWhereCols;
	}

	public Integer getScanCount() {
		return scanCount;
	}

	public void setScanCount(Integer scanCount) {
		this.scanCount = scanCount;
	}

}
